计算机与现代化 ›› 2012, Vol. 1 ›› Issue (11): 51-54+5.doi: 10.3969/j.issn.1006-2475.2012.11.014

• 软件工程 • 上一篇    下一篇

采集系统中存储技术的研究

刘 胜,张延园,林 奕,尤红桃   

  1. 西北工业大学计算机学院,陕西 西安 710129
  • 收稿日期:2012-07-05 修回日期:1900-01-01 出版日期:2012-11-10 发布日期:2012-11-10

Research on Disk Storage Technology in Data Acquisition System

LIU Sheng, ZHANG Yan-yuan, LIN Yi, YOU Hong-tao   

  1. College of Computer Science, Northwestern Polytechnical University, Xi’an 710129, China
  • Received:2012-07-05 Revised:1900-01-01 Online:2012-11-10 Published:2012-11-10

摘要: 随着光纤技术在嵌入式领域中的应用,通信数据量不断增加,高速采集网络上的数据并正确地存储到磁盘上已成为整个系统的瓶颈。本文从系统基本功能模块出发结合生产者/消费者(Producer-Consumer)模型,对多线程并发、直接读写扇区、异步I/O等技术在系统中的应用进行分析;对系统模型进行抽象,用数学方法对系统进行可行性分析。实验表明,数据采集系统中采用多线程多缓冲的方式在性能上有一定的提高。

关键词: 数据采集, 多线程, 生产者/消费者模型, CreateFile, 并发存储

Abstract: With the optical fiber technology used in embedded systems, the amount of communication data grows in the past years. How to move data that store in the memory to disk in a high speed and correct way becomes the bottleneck of data acquisition system. This article starts with the basic function modules which are combined with producer-consumer model, and analyzes multi-thread concurrency, direct read and write disk devices without passing through file system, asynchronous I/O and other technologies used in the system. The paper abstracts the system model and uses mathematical methods to give a feasibility analysis for the system. Experiments show that the performance of system which adopts multi-thread concurrency method is improved with a certain extent.

Key words: data acquisition, multi-thread, producer-consumer model, CreateFile, concurrency storage

中图分类号: